/* 加拿大28预测分析网站样式 */

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0.5rem 0 0;
    color: #f1c40f;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 导航样式 */
nav {
    background-color: #3498db;
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.breadcrumb li {
    margin: 0 0.5rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #f1c40f;
    text-decoration: underline;
}

/* 主体内容 */
main {
    padding: 2rem 0;
}

section {
    background-color: white;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 按钮样式 */
.primary-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(50,50,93,0.11), 0 1px 3px rgba(0,0,0,0.08);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.08);
}

.primary-btn:active {
    transform: translateY(1px);
}

.clicked {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.result-box {
    border: 1px solid #e1e8ed;
    padding: 1.2rem;
    min-height: 2rem;
    background-color: #ffffff;
    margin-bottom: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 数字球样式 */
.prediction-number {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    margin: 0 4px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.prediction-number:hover {
    transform: scale(1.1);
}

.kill-number {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* 预测组样式 */
.prediction-group {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px dashed #eee;
}

.prediction-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.prediction-group h4 {
    color: #3498db;
    margin-bottom: 0.8rem;
}

.prediction-group .tip {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 0.5rem;
}

.prediction-numbers {
    margin: 0.8rem 0;
}

.range-recommendation p,
.pattern-recommendation p {
    margin: 0.4rem 0;
    padding: 0.3rem 0;
}

/* 防诈板块样式 */
.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1.2rem;
    margin-top: 1.2rem;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.warning-box strong {
    color: #856404;
}

.anti-fraud-content h3 {
    color: #e74c3c;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.anti-fraud-content h3:first-child {
    margin-top: 0;
}

/* 友情链接样式 */
#friend-links ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

#friend-links li {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f1f8ff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

#friend-links li:hover {
    background-color: #3498db;
    transform: translateY(-2px);
}

#friend-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

#friend-links li:hover a {
    color: white;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid #e1e8ed;
    padding: 0.8rem;
    text-align: center;
}

th {
    background-color: #f1f8ff;
    font-weight: 600;
    color: #2c3e50;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e3f2fd;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 0.9rem;
}

/* 弹窗广告样式 */
.popup-ad {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.5s ease;
}

@keyframes popupFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.popup-content h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.ad-link {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ad-link:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.ad-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    header {
        padding: 1rem 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header .subtitle {
        font-size: 1rem;
    }
    
    nav {
        padding: 0.6rem 0;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .breadcrumb li {
        margin: 0 0.3rem;
    }
    
    main {
        padding: 1rem 0;
    }
    
    section {
        padding: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .primary-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .table-container {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    #friend-links ul {
        flex-direction: column;
    }
    
    #friend-links li {
        margin: 0.3rem 0;
        text-align: center;
    }
    
    .prediction-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.9rem;
    }
    
    .popup-content {
        padding: 1.5rem;
        width: 90%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        flex-direction: column;
        align-items: center;
    }
    
    .breadcrumb li {
        margin: 0.2rem 0;
    }
    
    .prediction-number {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 0.8rem;
        margin: 0 2px;
    }
    
    .result-box {
        padding: 1rem;
    }
    
    .popup-content {
        padding: 1rem;
    }
    
    .ad-link {
        padding: 0.6rem 1.2rem;
    }
}